package com.cskaoyan.day30.work1._01isingleton;

public class MySingleton3 {
    private static MySingleton3 mySingleton3;
    private MySingleton3(){

    }
    public static synchronized MySingleton3 getInstance(){
        if (mySingleton3 == null){
            mySingleton3 = new MySingleton3();
        }
        return mySingleton3;
    }
}
